home *** CD-ROM | disk | FTP | other *** search
/ FishMarket 1.0 / FishMarket v1.0.iso / fishies / 051-075 / disk_073 / parout / getfreemisc.asm next >
Assembly Source File  |  1992-05-06  |  1KB  |  39 lines

  1. ******************************************************************************
  2. * getfreemisc.asm - interface routines for misc.resource
  3. * Phillip Lindsay (c) 1987 Commodore-Amiga, Inc. 
  4. *     Unlimited use granted as long as copyright notice remains intact.        
  5. *
  6. ******************************************************************************
  7.  
  8.     INCLUDE    'exec/types.i'
  9.     INCLUDE    'exec/libraries.i'
  10.     INCLUDE 'resources/misc.i'
  11.     
  12.     XDEF    _GetMiscResource
  13.     XDEF    _FreeMiscResource
  14.  
  15. _GetMiscResource:
  16.     movem.l    a4/a6,-(sp)
  17.     move.l    20(sp),a1    ; name
  18.     move.l    16(sp),d0    ; unit
  19.     move.l    12(sp),a6    ; misc resource pointer
  20.     jsr    MR_ALLOCMISCRESOURCE(a6)
  21.     movem.l    (sp)+,a4/a6
  22.     rts
  23.  
  24. _FreeMiscResource:
  25.     movem.l    a4/a6,-(sp)
  26.     move.l    12(sp),a6    ; misc resource pointer
  27.     move.l    16(sp),d0    ; unit
  28.     jsr    MR_FREEMISCRESOURCE(a6)
  29.     movem.l    (sp)+,a4/a6
  30.     rts
  31.  
  32.     end    
  33. *****************************************************************************
  34. *
  35. * end of getfreemisc.asm
  36. *
  37. *****************************************************************************
  38.